﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

using System.Windows.Data;

namespace ESC.Designer.Resources
{
    public class LotStateConvert : IValueConverter
    {
        public object Convert(object value, Type targetType, object parameter, System.Globalization.CultureInfo culture)
        {
            if (value.ToString() == "N")
            {
                return "未下線";
            }
            else if (value.ToString() == "C")
            {
                return "正常結案";
            }
            else if (value.ToString() == "F")
            {
               return "作廢結案";
            }
            else if (value.ToString() == "R")
            {
                return "下線中";
            }
            else
            {
                return "";
            }
        }

        public object ConvertBack(object value, Type targetType, object parameter, System.Globalization.CultureInfo culture)
        {
            throw new NotImplementedException();
        }
    }
}
